import React from "react";
// import App from "../../App";

class Child extends React.Component{
    // let status = {
    //     name:'zhangsan'
    // }

    state = {
        name:''
    }

    componentWillReceiveProps(newProps){
        // this.setState({
        //     name:newProps.name
        // });
        console.log('this is new Props:'+newProps.name);
    }


    render(){
        return <div>
            closer Child ：
            {this.props.name}
        </div>
    }
}

export default Child;